//引入mock模块
import Mock from 'mockjs';
//模拟接口延迟的功能
Mock.setup({
    timeout: "200-600"
});
const swiper = Mock.mock({
    swiper: [{
            id: 1,
            imgsrc: "http://rkpjp22r4.hn-bkt.clouddn.com/banner.jpg"
        },
        {
            id: 2,
            imgsrc: "http://rkpjp22r4.hn-bkt.clouddn.com/banner1.jpg"
        },
        {
            id: 3,
            imgsrc: "http://rkpjp22r4.hn-bkt.clouddn.com/banner2.jpg"
        },
    ]
});
// 地址
Mock.mock(/\/api\/get\/swiper/, "get", swiper);